RAM Disk 就是將動態記憶體(Dynamic Random Access Memory,DRAM)經由軟體模擬的方式,拿來當作一般硬碟使用,優點就是讀寫速度很快、壽命也比一般硬碟長,但是缺點是斷電時資料就會消失。 由於記憶體的存取速度比傳統硬碟、固態硬碟(SSD)或磁碟陣列的速度更快,因此將記憶體模擬為硬碟後,可以利用其優越的讀寫能力,提升系統執行效率。 RAM Disk 不像傳統硬碟採用馬達與磁片等機械裝置,而是靠電子訊號傳輸,因此在分類上也算是固態硬碟(Solid State Disk),但其讀
In Linux, you can create a ramdisk using the tmpfs filesystem. tmpfs is a virtual filesystem that stores files in volatile memory. To create a ramdisk, you first need to allocate a certain amount of memory for it.
In this guide, I‘ll walk you through everything you need to know to create, use, and optimize ramdisks on Linux. What is a Ramdisk Exactly? Simply put, a ramdisk uses part of your RAM as if it were a hard drive partition for ultra-fast storage. But
It can also be used for a temporary filesystem for crypto work, since the contents are erased on reboot. The RAM disk dynamically grows as more space is required.